package com.yima.baseproj.module.sys.kindergarten;

import com.baomidou.mybatisplus.annotation.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yima.baseproj.config.mybatis.handler.MybatisDateTypeHandler;
import com.yima.baseproj.module.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import kotlin.jvm.internal.IntSpreadBuilder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("yry_kindergarten")
public class KindergartenEntity implements Serializable {

    @TableId(value = "id" ,type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "幼儿园地址")
    private String kgAddress;
    @ApiModelProperty(value = "幼儿园名称")
    private String kgName;
    @ApiModelProperty(value = "幼儿园联系电话")
    private String kgPhone;
    @ApiModelProperty(value = "幼儿园小程序编码")
    private String kgCode;


    @TableField(fill = FieldFill.INSERT,value = "create_by")
    private String createBy;

    @TableField(fill = FieldFill.INSERT,value = "create_time",typeHandler = MybatisDateTypeHandler.class)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE,value = "update_by")
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE,value = "update_time",typeHandler = MybatisDateTypeHandler.class)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh")
    private Date updateTime;

    @TableField(value = "del_flag")
    @TableLogic(value = "0",delval = "1")
    private String delFlag = "0";


}
